/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.templet.entity;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import org.hibernate.validator.constraints.Length;

import java.util.List;

/**
 * 模板管理Entity
 * @author ZC
 * @version 2017-04-27
 */
public class EleTemplet extends DataEntity<EleTemplet> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 模板名称
	private int width;		// 宽度
	private int height;		// 高度
	private List<EleTempletSource> eleTempletSourceList;		// 子表列表
	private String flag; 	// 0：保存方案； 1：保存方案并生成代码
	
	public EleTemplet() {
		super();
	}

	public EleTemplet(String id){
		super(id);
	}

	@Length(min=0, max=255, message="模板名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=11, message="宽度长度必须介于 0 和 11 之间")
	public int getWidth() {
		return width;
	}

	public void setWidth(int width) {
		this.width = width;
	}
	
	@Length(min=0, max=11, message="高度长度必须介于 0 和 11 之间")
	public int getHeight() {
		return height;
	}

	public void setHeight(int height) {
		this.height = height;
	}
	
	public List<EleTempletSource> getEleTempletSourceList() {
		return eleTempletSourceList;
	}

	public void setEleTempletSourceList(List<EleTempletSource> eleTempletSourceList) {
		this.eleTempletSourceList = eleTempletSourceList;
	}

	public String getFlag(){
		return flag;
	}

	public void setFlag(String flag){
		this.flag = flag;
	}
}